package com.gqh.weather.domain.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 任务创建请求DTO
 */
@Data
public class TaskCreateRequest {

    private Integer id;

    @NotBlank(message = "任务名称不能为空")
    @Size(max = 100, message = "任务名称长度不能超过100位")
    private String name;

    @NotNull(message = "学年不能为空")
    private Integer school_year;

    @NotNull(message = "年级不能为空")
    private Integer grade;

    @NotNull(message = "测评方式不能为空")
    private Integer type;

    private Integer total_score;

    @Size(max = 1000, message = "测评内容长度不能超过1000位")
    private String content;

    @NotNull(message = "测评开始时间不能为空")
    private Long start_at;

    @NotNull(message = "测评结束时间不能为空")
    private Long end_at;

    /**
     * 阅卷任务类型(0不阅卷1阅卷)
     */
    @NotNull(message = "阅卷任务类型不能为空")
    private Integer sub_type;

    /**
     * 日程
     */
    @NotBlank(message = "日程不能为空")
    private String schedule;
}